package com.yonyou.cyxdms.sysAuth.service.dto;

import com.yonyou.cyx.framework.bean.entity.base.BasePO;
import com.yonyou.cyx.function.utils.bean.BeanMapperUtil;
import com.yonyou.cyxdms.framework.bean.dto.base.DMSBaseDTO;

import java.io.Serializable;


/**
 * <p>
 * 
 * </p>
 *
 * @author maxingjian
 * @since 2019-11-07
 */

public class MenuFavoriteDTO extends DMSBaseDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 收藏菜单ID
     */
        private Long favoriteId;
        /**
     * 经销商代码
     */
        private Long companyId;
        /**
     * 菜单ID
     */
        private Long menuId;
        /**
     * 员工账号
     */
        private String userCode;
            private Long userOrgId;
        /**
     * 是否收藏 使用代码1004
     */
        private Integer favorite;
            private Boolean isDeleted;
    
    public MenuFavoriteDTO() {
        super();
    }




    public Long getFavoriteId() {
        return favoriteId;
    }


    public void setFavoriteId(Long favoriteId) {
        this.favoriteId = favoriteId;
    }



    public Long getCompanyId() {
        return companyId;
    }


    public void setCompanyId(Long companyId) {
        this.companyId = companyId;
    }



    public Long getMenuId() {
        return menuId;
    }


    public void setMenuId(Long menuId) {
        this.menuId = menuId;
    }



    public String getUserCode() {
        return userCode;
    }


    public void setUserCode(String userCode) {
        this.userCode = userCode;
    }



    public Long getUserOrgId() {
        return userOrgId;
    }


    public void setUserOrgId(Long userOrgId) {
        this.userOrgId = userOrgId;
    }



    public Integer getFavorite() {
        return favorite;
    }


    public void setFavorite(Integer favorite) {
        this.favorite = favorite;
    }



    public Boolean getDeleted() {
        return isDeleted;
    }


    public void setDeleted(Boolean isDeleted) {
        this.isDeleted = isDeleted;
    }



    @Override
    public String toString() {
        return "MenuFavoriteDTO{" +
        "favoriteId=" + favoriteId +
        ", companyId=" + companyId +
        ", menuId=" + menuId +
        ", userCode=" + userCode +
        ", userOrgId=" + userOrgId +
        ", favorite=" + favorite +
        ", isDeleted=" + isDeleted +
        "}";
    }
    /**
     * 将DTO 转换为PO
     * //对某个对象属性进行赋值
     * //BeanMapperUtil.populateValueByMethod(transPO,"setXxx",this.getXxx);
     * @param poClass dto 需要转换的dto
     * @author maxingjian
     * @since 2018/7/22 0022
     */
    @Override
    public <T extends BasePO> T transDtoToPo(Class<T> poClass) {
        return super.transDtoToPo(poClass);
    }

    /**
     * 将DTO 转换为PO
     * BeanMapperUtil.populateValueByMethod(transPO,"setXxx",this.getXxx);
     * @param po 需要转换的对象
     * @author maxingjian
     * @since 2018/7/22 0022
     */
    public <T extends BasePO> void transDtoToPo(T po) {
        BeanMapperUtil.copyProperties(this, po, "favoriteId");
    }

}
